﻿using System;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace RedSand.Site.Models
{
    public class CustomPcInfo
    {
        [Key]
        [HiddenInput(DisplayValue=false)]
        public int CustomPcID{ get; set; }

        [Display(Name = "Name")]
        [Required]
        public string Name{ get; set; }

        [Display(Name = "Alias")]
        [RegularExpression(@"[a-zA-Z0-9_-]*")]
        [Required]
        public string Alias{ get; set; }

        [Display(Name = "Image")]
        public string Image{ get; set; }

        [Display(Name = "Price")]
        [Required]
        [RegularExpression(@"[0-9]*(\.[0-9])?[0-9]*")]
        public string Price{ get; set; }

        [Display(Name = "Details")]
        public string Details{ get; set; }

        [Display(Name = "CategoryID")]
        [Required]
        public int? CategoryID{ get; set; }

        [Display(Name = "IsBargain")]
        public bool? IsBargain{ get; set; }

        [Display(Name = "BargainImage")]
        public string BargainImage{ get; set; }

        [Display(Name = "Status")]
        public byte? Status{ get; set; }
    }
}
